package cn.chengpengper.seckill.common.model.message;

import lombok.Data;

import java.math.BigDecimal;

/**
 * @author chengpeng.hu
 */
@Data
public class TxMessage extends ErrorMessage {
    //活动id
    private Long activityId;
    //商品版本号
    private Long version;
    //用户id
    private Long userId;
    //商品名称
    private String goodsName;
    //秒杀活动价格
    private BigDecimal activityPrice;

    public TxMessage() {
    }

    public TxMessage(String destination, Long txNo, Long goodsId, Integer quantity, Long activityId, Long version, Long userId, String goodsName,
                     BigDecimal activityPrice, String placeOrderType, Boolean exception, Integer bucketSerialNo, String orderTaskId) {

        super(destination, txNo, goodsId, quantity, placeOrderType, exception, bucketSerialNo, userId, orderTaskId);
        this.activityId = activityId;
        this.version = version;
        this.userId = userId;
        this.goodsName = goodsName;
        this.activityPrice = activityPrice;
    }

}
